package com.cskaoyan.controller.wx.goods;

import com.cskaoyan.anno.ValidAnno;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.vo.wx.goods.categoryvo.CateGoryListVO;
import com.cskaoyan.bean.vo.wx.goods.categoryvo.CategoryVO;
import com.cskaoyan.service.wx.goods.WxGoodsService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/*
 * @Auther:王贲
 * @Date:2022/9/9
 * @Description:
 * @VERSON:1.8
 */
@RestController
@RequestMapping("wx/goods")
public class WxGoodsController2 {

    @Autowired
    WxGoodsService2 wxGoodsService2;

    @GetMapping("/category")
    public BaseRespVo categoryGoods(Integer id) {
        CategoryVO categoryVO = wxGoodsService2.categoryInfo(id);
        return BaseRespVo.ok(categoryVO);
    }




}
